<template>
  <div id="app">
    <el-container>
      <el-header>
        <el-menu
          :default-active="activeIndex"
          class="el-menu-demo"
          mode="horizontal"
          :router="true"
        >
          <el-menu-item index="1" :route="{ path: '/bubbling' }"
            >冒泡排序</el-menu-item
          >
          <el-menu-item index="2" :route="{ path: '/bubbling-up' }"
            >冒泡排序(优化版本)</el-menu-item
          >
          <el-menu-item index="3" :route="{ path: '/select' }"
            >选择排序</el-menu-item
          >
          <el-menu-item index="4" :route="{ path: '/select-up' }"
            >选择排序(优化版本)</el-menu-item
          >
        </el-menu>
      </el-header>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      activeIndex: "1",
    };
  },
};
</script>

<style lang="scss">
</style>
